<?php

class Ext_Image_Show_Urls
{
    protected $_imageFilePath;
    protected $_imageFileName;
    
    protected $_big;
    
    
	public function __construct($imageId)
	{
		$_appModelDbTableImage = App_Model_DbTable_Image::getInstance();
		$imageRow = $_appModelDbTableImage->getRowById($imageId);

		$_path = $imageRow['path'];
		if (substr(PHP_OS, 0, 3) == 'WIN')
		{
			$_path = str_replace(DIRECTORY_SEPARATOR, '/', $_path);
		}
		$this->_imageFilePath = rtrim($_path, '/') . '/';
		$this->_imageFileName = $imageRow['name'];
		
		
	}
    
    private function _url($sizeName)
    {
        $_config = Ext_Config::getInstance()->getConfig('image');
		$_imageUrl  = rtrim($_config->url, "/") . "/resize/" . $sizeName . "/" . $this->_imageFilePath . $this->_imageFileName;
		return $_imageUrl;    
    }
}
